module RestaurantHelper
  def get_restaurant_sidebar(active_name)
      content_for :sidebar do
        render :partial => "restaurants/partials/sidebar/sidebar",:locals => {active_class:active_name}
      end
  end   

  def get_restaurant_breadcrumb(navs, title)
      content_for :breadcrumb do
        render :partial => "restaurants/partials/breadcrumb/breadcrumb",:locals => {navs: navs,title: title}
      end
  end

  def order_label order
    if @order.status ==  Order::WAIT
      'label-default'
    elsif @order.status == Order::SUCCESS
      'label-primary'   
    elsif @order.status == Order::FINISH
      'label-info'  
    elsif @order.status == Order::CANCEL
      'label-danger'  
    end  
  end  
end
